<template>
  <el-aside width="278px" style="background: #e9dcc4">
    <img src="../../../assets/images/logo.png" alt="" />

    <el-menu
      default-active="1"
      class="el-menu-vertical-demo"
      background-color="transparent"
      :router="true"
    >
      <el-menu-item index="/home/index">
        <el-icon><icon-menu /></el-icon>
        <span>首页</span>
      </el-menu-item>
      <el-sub-menu index="2">
        <template #title>
          <el-icon><location /></el-icon>
          <span>医嘱单管理</span>
        </template>
        <el-menu-item index="/home/pos-open">开单</el-menu-item>
        <el-menu-item index="/home/pos-list">医嘱单列表</el-menu-item>
      </el-sub-menu>
    </el-menu>
  </el-aside>
</template>

<script lang="ts" setup>
import {
  Document,
  Menu as IconMenu,
  Location,
  Setting,
} from "@element-plus/icons-vue";
const handleOpen = (key: string, keyPath: string[]) => {
  console.log(key, keyPath);
};
const handleClose = (key: string, keyPath: string[]) => {
  console.log(key, keyPath);
};
</script>

<style lang="less" scoped>
img {
  margin: 31px 0 31px 32px;
}

.is-active {
  background-color: #fff;
}
</style>
